package com.ilop.sthome.mvp.contract.device;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.RoomBean;

import java.util.List;

/**
 * @author skygge
 * @date 2020/7/13.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface DeviceForRoomContract {

    interface IView extends IBaseView {

        void showRoomList(List<RoomBean> room);

        void showEmptyView();

        void refreshRoom(String roomId);

        void showLoadingView();

        void removeLoadingView();
    }

    interface IPresent extends IBasePresenter<IView> {

        void getRoomList();

        /**
         * 更新局部数据
         */
        void refreshByPosition(String deviceName, String roomId);

        void findAllSubDevice();
    }
}
